package com.demo.heima;

import lombok.extern.slf4j.Slf4j;

/**
 * @author lkz
 * @className Test5
 * @description
 * @date 2024/6/7 17:11
 **/
@Slf4j
public class Test5 {


    public static void main(String[] args) {
        Thread t1 = new Thread("t1") {
            @Override
            public void run() {
                log.debug("running...");
            }
        };

        System.out.println(t1.getState());
        t1.start();
       // t1.start(); //启动之后状态已经改变
        System.out.println(t1.getState());
    }

}
